﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using RentAWorker.Business.Interfaces;
using RentAWorker.Web.Factory;
using RentAWorker.DataAccess.Entities;

namespace RentAWorker.WebNew.CustomerCode
{
    public class RefDataHelper
    {
        private IReferenceDataService RefDataService;

        public RefDataHelper()
        {
            RefDataService = ClientProxyFactory.GetRefDataProxy();
        }

        public List<Location> GetLocations()
        {
            return new List<Location>(RefDataService.GetLocations());
        }

        public List<MachineType> GetMachineTypes()
        {
            return new List<MachineType>(RefDataService.GetMachineTypes());
        }

        public List<RentalServiceState> GetRentalStates()
        {
            return new List<RentalServiceState>(RefDataService.GetRentStates());
        }
    }
}
